import { createStore } from 'vuex'
const store = createStore({
    state:{//存放状态
        name:"狐狸",
		datas:[],
		xiangqing:null,
		users:null,
		theme:null,
    },
	
	mutations:{
		updateDatas(state,data){
			state.datas = data
		},
		updatename(state,name){
			state.name = name
		},
		updatexiangqing(state,data){
			state.xiangqing = data
		},
		updateusers(state,data){
			state.users = data
		},
		updatetheme(state,data){
			state.theme=data
		}
	}
})
 
export default store
